module.exports = {
  publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
  devServer: {
    proxy: {
      '/api': {
        target: 'https://api-hmugo-web.itheima.net',
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/api': 'https://api-hmugo-web.itheima.net/api' // 重写请求路径
        }
      }
    }
  }
}
